package com.kaibes.platform.menu.admin;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import com.kaibes.web.admin.AdminController;
import com.kaibes.platform.menu.MenuService;
import com.kaibes.web.api.ApiLink;

@AdminController
@RequestMapping("/admin/menu/setting")
public class IndexMenuController {

    @Autowired
    private MenuService menuService;
    
    @GetMapping
    @ApiLink("菜单设置页面")
    public String edit(Model model) {
        model.addAttribute("menuList", menuService.list());
        return "menu-setting";
    }
    
}
